from app import db
from datetime import datetime

class Application(db.Model):
    __tablename__ = "sys_app_list"
    
    id = db.Column(db.String(36), primary_key=True)
    application_name = db.Column(db.String(100), nullable=False)
    status = db.Column(db.Integer, comment="状态 1启用 0禁用")
    description = db.Column(db.String(200), nullable=True)
    version = db.Column(db.String(45))
    create_time = db.Column(db.DateTime, default=datetime.now)
    update_time = db.Column(db.DateTime, default=datetime.now, onupdate=datetime.now)
